home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / utilities / u525.dms / u525.adf / Utilities.Doc < prev    next >
Text File  |  2009-04-29  |  4KB  |  104 lines

  1.  
  2. Brush2Icon Documentation
  3.  
  4. *****************************************************************************
  5.  
  6.    This program will turn any iff brush or picture into an
  7. icon for the WorkBench.
  8.    I used to use 'zapicon' and it worked just fine except
  9. it used GADGHCOMP for the icon's hilighting mode which I
  10. personal think doesn't look to good.  The solution was to
  11. use zapicon to convert the iff brush to am icon and then
  12. load the icon into IconEd, change the hilite mode to
  13. BackFill and resave it.  The problem with that approach is
  14. that IconEd doesn't seem to like icons made with zapicon. 
  15. It loads them just fine but 30-40% of them it doesn't save
  16. them correctly.  I don't know what the problem is but after
  17. they'd been resaved with IconEd they would appear as almost
  18. total garbage on the WorkBench.  The other problem to that
  19. approach is that IconEd won't handle large icons.  So I
  20. finally sat down and wrote my own program to do what I
  21. needed.
  22.    Brush2Icon only runs from the CLI and takes the
  23. following format
  24.  
  25.    Brush2Icon name brush1 [-abrush2] [-backfill] [-tTYPE]
  26.  
  27. where 'name' is the name of the file your making an icon
  28. for. (ie. do NOT include the ".info")  'Brush1' is the IFF
  29. file that contains the picture to be used for the Icon. 
  30. The rest are optional.
  31.  
  32.    -abrush2 allows you to use a second IFF file for the
  33. selected image of the icon.  I think it is much easier to
  34. do this here than to make two icons and then run alticon on
  35. them.
  36.  
  37.    -backfill will set the hilite mode to BACKFILL instead
  38. of COMPLEMENT which is the default.  Note: this option is
  39. overridden by the -a option.
  40.  
  41.    -tTYPE sets the type of the icon.  The default type is
  42. PROJECT.  Valid types are TOOL, PROJECT, DRAWER, DISK and
  43. GARBAGE
  44.  
  45. examples.
  46.  
  47.    Brush2Icon Harv Face.pic
  48.  
  49. Creates an icon for the file 'Harv' (ie. it creates a file
  50. named 'Harv.info' using the iff image in the file
  51. 'Face.pic'.  The filetype will be PROJECT and the hilite
  52. type will be COMPLEMENT (GADGHCOMP)
  53.  
  54.    Brush2Icon Harv Face.pic -b -tTOOL
  55.  
  56. Same as above expect the filetype will be TOOL and the
  57. hilite type will be BACKFILL.
  58.  
  59.    Brush2Icon Progs Closed.pic -aOpened.pic -tDRAWER
  60.  
  61. Creates an icon for the drawer 'Progs'.  The icon will look
  62. like the image in the IFF file 'Closed.pic' then when it is
  63. clicked on or selected it will display the image in the
  64. file 'Opened.pic'.  the filetype is DRAWER and the hilite
  65. type is GADGHIMAGE.
  66.  
  67.    Brush2Icon
  68.  
  69. Prints out a few simple instructions.
  70.  
  71. Note: 1) If you make an alternate image be sure you save
  72. the two images in the same size.  (If you want an
  73. explanation just try it with different sized ones and see
  74. what happens. :-D )
  75.       2) This program doesn't strip extra bitplanes so if
  76. you draw a 16 color icon it 'SHOULD' save all 4 planes. 
  77. This is a waste of memory if you are only using a 2 plane
  78. WorkBench but if you have modified your WorkBench for more
  79. planes then it should allow you to make icons for it. 
  80. (Should means that I haven't actually tried it.  I don't
  81. personally strip the planes but PutDiskObject() might.)
  82.  
  83.  
  84.    I have uploaded the source in case you would like
  85. to add other features, change the defaults or just see if
  86. there are some nifty routines you can use in your own
  87. programs.  Actually there are a few but I will upload them
  88. separately with documentation in the near future.
  89.  
  90.    This program is Public Domain.  Please do NOT sell it
  91. or take credit for work that is not yours.  Thank you.
  92.  
  93.          Gregg Tavares
  94.          10500 National Blvd #24
  95.          Los Angeles, CA  90034
  96.  
  97.          PLINK: GreggT
  98.  
  99.  
  100.  
  101. *****************************************************************************
  102.